import {binder, view, ViewGroup} from "adajs";
import LgbtableService from "./state.js";
import List from "./../../lists";

@view({
    className: "lgbtable",
    template: "./template.html",
    style: "./style.scss",
    dataset: {
        service: LgbtableService
    }
})
class Lgbtable extends ViewGroup {
    tags() {
        return {
            list: List
        };
    }

    @binder("search")
    search() {
        this.commit("search", this.finder("keyword").getElement().value);
    }
}

export default Lgbtable;